package com.edu.neusoft.cookbook.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (Comments)表实体类
 *
 * @author makejava
 * @since 2024-12-07 12:51:03
 */
@Data
public class Comments{
    //主键，唯一标识一条评论
    @TableId
    private Integer commentId;
    //外键，关联到食谱表，表示评论所属的食谱
    private Integer recipeId;
    //评论内容
    private String content;


    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(Integer recipeId) {
        this.recipeId = recipeId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


}

